import type { RouteRecordRaw } from "vue-router";

export default function  autoloadModuleRoute(){
    const modules = import.meta.glob('../module/**/*.ts', { eager: true });
    const routes = [] as RouteRecordRaw []
    Object.keys(modules).forEach(key=>{
        routes.push((modules[key] as any).default as RouteRecordRaw)
    })
    return routes
}